/*import { showLoading, showError, closeLoading } from "@/utils/vant";
const useFetchData = defineStore("fetch-lotNews", () => {
  const resData = ref<Record<string, any>>({});
  const FETCH_DELAY = 300;
  async function fetchData() {
    try {
      showLoading();
      resData.value = {};
      const res = await new Promise<Record<string, any>>(resolve => {
        const timer = setTimeout(() => {
          clearTimeout(timer);
          resolve({
            id: 49297
          });
        }, FETCH_DELAY);
      });
      resData.value = res;
    } catch (error) {
      showError(error);
    } finally {
      closeLoading();
    }
  }
  onMounted(() => {
    fetchData();
  });

  return { resData, fetchData };
});

export const useFetchDataRefs = () => storeToRefs(useFetchData());
export default useFetchData;
*/
